/**
 * Alipay.com Inc.
 * Copyright (c) 2009-2010 All Rights Reserved.
 */
package com.alipay.test.dbtest.script;

import java.io.InputStream;

/**
 * ScriptLoader defines loads scripts from resource
 * 
 * @author quickpoint
 * @version $Id: ScriptLoader.java, v 0.1 2010-5-29 下午08:28:58 quickpoint Exp $
 */
public interface ScriptLoader {

    /**
     * load script contents from file
     * @param script script file name
     * @throws ScriptException exception throws when failed to load
     */
    void load(String script) throws ScriptException;

    /**
     * load script contents from stream
     * @param script script file stream
     * @throws ScriptException exception throws when failed to load
     */
    void load(InputStream script) throws ScriptException;
}
